package com.example.day04.exercise;

import java.util.Date;

public class Ord {
    private  int id;
    private  int ordId;
    private  double price;
    private  int  status=0;
    private Date  createDate;

    public Ord(int id, int ordId, double price, Date createDate) {
        this.id = id;
        this.ordId = ordId;
        this.price = price;

        this.createDate = createDate;
    }

    public Ord() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getOrdId() {
        return ordId;
    }

    public void setOrdId(int ordId) {
        this.ordId = ordId;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Ord{");
        sb.append("id=").append(id);
        sb.append(", ordId=").append(ordId);
        sb.append(", price=").append(price);
        sb.append(", status=").append(status);
        sb.append(", createDate=").append(createDate);
        sb.append('}');
        return sb.toString();
    }
}
